﻿using MagicWorld.DDD.Domain.Entity;
using MagicWorld.DDD.Domain.Repository;
using MagicWorld.DDD.Domain.Types;

namespace MagicWorld.DDD.Infrastructure.Repository.Impl
{
    public class WeaponRepository : IWeaponRepository
    {
        public Weapon Find(WeaponId weaponId)
        {
            var weapon = new Weapon(new WeaponId(1), "绝世好剑", WeaponType.Sword);
            weapon.SetDamage(20, DamageType.Physical);
            return weapon;
        }
    }
}